Skip to content

Pipes - Kimberley Zell - TaskList#46

Open
kimpossible1 wants to merge 11 commits intoAda-C8:masterfrom
kimpossible1:master
Open

Pipes - Kimberley Zell - TaskList#46
kimpossible1 wants to merge 11 commits intoAda-C8:masterfrom
kimpossible1:master

Conversation

@kimpossible1
Copy link

Task List

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Describe in your own words what the Model is doing in Rails From TaskList I do not have a good grasp on what the Model is doing, but I know it contains data for the application.
Describe in your own words what the Controller is doing in Rails The Controller receives information from Views and holds methods/actions to be taken based on info received, and it communicates with the Model.
Describe in your own words what the View is doing in Rails The View gives instructions on what to display on the browser and paths for redirects.
What is the purpose of using strong params? (i.e. the params method in the controller) To put emphasis on text, which could translate into Bold for example depending on styles established in the app.
How are Rails migrations related to Rails models? The migration updates the Model/database.
Describe one area of Rails that are still unclear on Probably when to put code in the model versus the Controller.

patch('tasks/:id/complete', to: 'tasks#complete', as:'complete_task')
# get('/tasks/:id/confirm_delete', to: 'tasks#confirm_delete', as: 'confirm_delete_task')
# patch('tasks/:id/delete', to: 'tasks#delete', as: 'delete_task')
delete('tasks/:id/delete', to: 'tasks#delete', as: 'delete_task')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This delete route is not RESTful - the URL should be tasks/:id.

@droberts-sea
Copy link

Task List

What We're Looking For

Feature Feedback
Baseline
Appropriate Git Usage with no extraneous files checked in yes
Answered comprehension questions yes
Successfully handles: Index, Show yes
Successfully handles: New, Create yes
Successfully handles: Edit, Update yes
Successfully handles: Destroy, Task Complete yes
Routes follow RESTful conventions mostly - see inline comment
Uses named routes (like _path) yes
Overall Great work overall!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants